﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="Chowpoo.Util" %>
<%@ Import Namespace="CourseSystem.Core.BLL" %>
<table width="100%" border="0" cellpadding="4" cellspacing="1" class="table03">
    <tr class="box06">
        <td width="25%" align="center">
            评价人类型
        </td>
        <td width="25%" align="center">
            总评价数
        </td>
        <td width="10%" align="center">
            差
        </td>
        <td width="10%" align="center">
            较差
        </td>
        <td width="10%" align="center">
            一般
        </td>
        <td width="10%" align="center">
            好
        </td>
        <td width="10%" align="center">
            很好
        </td>
    </tr>
    <%
        var list = CourseCommentBLL.GetList(1, 0, -1, 0); %>
    <tr class="box01">
        <td height="27" align="center">
            游客
        </td>
        <td align="center">
            <%=list.Count() %>
        </td>
        <td align="center">
            <%=list.Count(o=>o.Rank==1) %>
        </td>
        <td align="center">
            <%=list.Count(o=>o.Rank==2) %>
        </td>
        <td align="center">
            <%=list.Count(o=>o.Rank==3) %>
        </td>
        <td align="center">
            <%=list.Count(o=>o.Rank==4) %>
        </td>
        <td align="center">
            <%=list.Count(o=>o.Rank==5) %>
        </td>
    </tr>
    <%
        var list0 = CourseCommentBLL.GetList(1, 0, 0, 0); %>
    <tr class="box02" onmouseover="this.className='bg3'" onmouseout="this.className='bg4'"
        bgcolor="#FFFFFF">
        <td height="27" align="center">
            学生
        </td>
        <td align="center">
            <%=list0.Count() %>
        </td>
        <td align="center">
            <%=list0.Count(o=>o.Rank==1) %>
        </td>
        <td align="center">
            <%=list0.Count(o=>o.Rank==2) %>
        </td>
        <td align="center">
            <%=list0.Count(o=>o.Rank==3) %>
        </td>
        <td align="center">
            <%=list0.Count(o=>o.Rank==4) %>
        </td>
        <td align="center">
            <%=list0.Count(o=>o.Rank==5) %>
        </td>
    </tr>
    <%
        var list1 = CourseCommentBLL.GetList(1, 0, 1, 0); %>
    <tr class="box01">
        <td height="27" align="center">
            专家
        </td>
        <td align="center">
            <%=list1.Count() %>
        </td>
        <td align="center">
            <%=list1.Count(o=>o.Rank==1) %>
        </td>
        <td align="center">
            <%=list1.Count(o=>o.Rank==2) %>
        </td>
        <td align="center">
            <%=list1.Count(o=>o.Rank==3) %>
        </td>
        <td align="center">
            <%=list1.Count(o=>o.Rank==4) %>
        </td>
        <td align="center">
            <%=list1.Count(o=>o.Rank==5) %>
        </td>
    </tr>
</table>
